package com.platform.service;

import com.platform.dao.ApiCircleMapper;
import com.platform.entity.ApiCircleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-14 23:16:55
 */
@Service
public class ApiCircleService {

    @Autowired
    private ApiCircleMapper apiCircleMapper;

    public void save(ApiCircleVo circleVo) {
        apiCircleMapper.save(circleVo);
    }

    public List<ApiCircleVo> selectList(Map params) {
        return apiCircleMapper.queryList(params);
    }

    public ApiCircleVo selectOne(Long circleId) {
        return apiCircleMapper.queryObject(circleId);
    }
}
